┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
prd-web-01.centraldc.gr
LOCATION:
/var/www/html/stafilos/wp-content/plugins/polylang/src/Capabilities/User
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: Creator.php
<?php /** * @package Polylang */ namespace WP_Syntex\Polylang\Capabilities\User; use WP_User; /** * A class to create a decorated user. * Always returns a `NOOP` instance so capabilities features are disabled by default. * * @since 3.8 */ class Creator implements Creator_Interface { /** * The user instance to be used for capability checks. * * @var NOOP */ private ?NOOP $instance = null; /** * Creates and returns the user. * * @since 3.8 * * @param WP_User $user The user to decorate. * @return User_Interface Instance of `NOOP`. */ public function get( WP_User $user ): User_Interface { if ( $this->instance && $user->ID === $this->instance->get_id() ) { return $this->instance; } $this->instance = new NOOP( $user ); return $this->instance; } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 Creator.php
PHP
802 B
2026-04-28 11:54
EDIT
📄 Creator_Interface.php
PHP
497 B
2026-04-28 11:54
EDIT
📄 NOOP.php
PHP
2.9 KB
2026-04-28 11:54
EDIT
📄 User_Interface.php
PHP
2.1 KB
2026-04-28 11:54
EDIT